package com.whately.core.base.selfconfig;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@ConfigurationProperties(prefix = "myconfig.whlog")
@Slf4j
@Data
public class SelfDefineConfigWhLog {
    //whlog打印入口开关
    private boolean open = true;

    //whlog打印入口参数开关
    private boolean openPrintParam = false;

    //排除的处理器
    private String excludeHandlerCode;

    @PostConstruct
    public void init(){
        log.info("myconfig.whlog init open is {} ,openPrintParam is {}",open,openPrintParam);
    }
}
